package com.example.demo.service;

import com.example.demo.domain.entity.ParameterDefinitionEntity;
import com.example.demo.domain.model.Parameter;
import com.example.demo.domain.model.ParameterDefinition;

import java.util.List;

public interface ParameterDefinitionService {
     boolean existById(Long id);

     ParameterDefinitionEntity getById(Long id);

     int updateById(ParameterDefinitionEntity entity);

     void savePdList(Parameter parameter, Long rootId, Long pid);

     void saveOnePd(Long rootId, Long pid, ParameterDefinition parameterDefinition);

    List<ParameterDefinitionEntity> listByRootId(Long parameterRootId);

    int deleteById(Long id);

    int deleteByPid(Long pid);
}
